package com.shenmazong.library.controller;

import com.shenmazong.cheat.entity.TbExamCheat;
import com.shenmazong.library.entity.TbExamChapter;
import com.shenmazong.library.entity.TbExamSkillDetail;
import com.shenmazong.library.entity.TbExamSkillLibrary;
import com.shenmazong.library.entity.TbExamTheoryLibrary;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.shenmazong.library.service.ExamLibraryService;


/**
 *controller Qi
 */
@Api(tags = {"考试题库管理"})
@RestController
public class ExamLibraryController {

    @Autowired
    private  ExamLibraryService  libraryService;

    /**
     * @description //考试题库章节新增
     * @params [tbExamChapter]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:24
     */
    @PostMapping("saveExamChapter")
    public ResultResponse saveExamChapter(@RequestBody TbExamChapter tbExamChapter){
        return libraryService.saveExamChapter(tbExamChapter);
    }
    
    /**
     * @description //考试题库章节删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("deleteExamChapter")
    public ResultResponse deleteExamChapter(@RequestBody BatchChooseIdVo chooseIdVo){
        return libraryService.deleteExamChapter(chooseIdVo);
    }
    
    /**
     * @description //考试题库章节修改
     * @params [tbExamChapter]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("updateExamChapter")
    public ResultResponse updateExamChapter(@RequestBody TbExamChapter tbExamChapter){
        return libraryService.updateExamChapter(tbExamChapter);
    }
    
    /**
     * @description //考试题库章节列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("listExamChapter")
    public ResultResponse listExamChapter(@RequestBody ListParamVo paramVo){
        return libraryService.listExamChapter(paramVo);
    }
    
    /**
     * @description //考试题库章节所有列表
     * @params [tbExamChapter]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("listAllExamChapter")
    public ResultResponse listAllExamChapter(@RequestBody TbExamChapter tbExamChapter){
        return libraryService.listAllExamChapter(tbExamChapter);
    }
    
    /**
     * @description //考试技能题库明细新增
     * @params [tbExamSkillDetail]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("saveExamSkillDetail")
    public ResultResponse saveExamSkillDetail(@RequestBody TbExamSkillDetail tbExamSkillDetail){
        return libraryService.saveExamSkillDetail(tbExamSkillDetail);
    }
    
    /**
     * @description //考试技能题库明细删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("deleteExamSkillDetail")
    public ResultResponse deleteExamSkillDetail(@RequestBody BatchChooseIdVo chooseIdVo){
        return libraryService.deleteExamSkillDetail(chooseIdVo);
    }
    
    /**
     * @description //考试技能题库明细修改
     * @params [tbExamSkillDetail]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("updateExamSkillDetail")
    public ResultResponse updateExamSkillDetail(@RequestBody TbExamSkillDetail tbExamSkillDetail){
        return libraryService.updateExamSkillDetail(tbExamSkillDetail);
    }
    
    /**
     * @description //考试技能题库明细列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("listExamSkillDetail")
    public ResultResponse listExamSkillDetail(@RequestBody ListParamVo paramVo){
        return libraryService.listExamSkillDetail(paramVo);
    }
    
    /**
     * @description //考试技能题库新增
     * @params [tbExamSkillLibrary]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("saveExamSkillLibrary")
    public ResultResponse saveExamSkillLibrary(@RequestBody TbExamSkillLibrary tbExamSkillLibrary){
        return libraryService.saveExamSkillLibrary(tbExamSkillLibrary);
    }
    
    /**
     * @description //考试技能题库删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("deleteExamSkillLibrary")
    public ResultResponse deleteExamSkillLibrary(@RequestBody BatchChooseIdVo chooseIdVo){
        return libraryService.deleteExamSkillLibrary(chooseIdVo);
    }
    
    /**
     * @description //考试技能题库修改
     * @params [tbExamSkillLibrary]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("updateExamSkillLibrary")
    public ResultResponse updateExamSkillLibrary(@RequestBody TbExamSkillLibrary tbExamSkillLibrary){
        return libraryService.updateExamSkillLibrary(tbExamSkillLibrary);
    }
    
    /**
     * @description  //考试技能题库列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:25
     */
    @PostMapping("listExamSkillLibrary")
    public ResultResponse listExamSkillLibrary(@RequestBody ListParamVo paramVo){
        return libraryService.listExamSkillLibrary(paramVo);
    }
    
    /**
     * @description //考试理论题库新增
     * @params [tbExamTheoryLibrary]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:26
     */
    @PostMapping("saveExamTheoryLibrary")
    public ResultResponse saveExamTheoryLibrary(@RequestBody TbExamTheoryLibrary tbExamTheoryLibrary){
        return libraryService.saveExamTheoryLibrary(tbExamTheoryLibrary);
    }
   
    /**
     * @description //考试理论题库删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:26
     */
    @PostMapping("deleteExamTheoryLibrary")
    public ResultResponse deleteExamTheoryLibrary(@RequestBody BatchChooseIdVo chooseIdVo){
        return libraryService.deleteExamTheoryLibrary(chooseIdVo);
    }
    
    /**
     * @description //考试理论题库修改
     * @params [tbExamTheoryLibrary]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:26
     */
    @PostMapping("updateExamTheoryLibrary")
    public ResultResponse updateExamTheoryLibrary(@RequestBody TbExamTheoryLibrary tbExamTheoryLibrary){
        return libraryService.updateExamTheoryLibrary(tbExamTheoryLibrary);
    }
    
    /**
     * @description //考试理论题库列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:26
     */
    @PostMapping("listExamTheoryLibrary")
    public ResultResponse listExamTheoryLibrary(@RequestBody ListParamVo paramVo){
        return libraryService.listExamTheoryLibrary(paramVo);
    }
}




